class Person:
    def __init__(self,gender,age):
        self.gender = gender
        self.age = age
        print("--------调用构造方法创建对象--------")
    def named(self,name):
        self.name = name
    def eat(self):
        print("{}爱吃饭".format(self.name))
    def speak(self):
        print("{}要说话".format(self.name))
    def toString(self):
        print("我叫{}，我今年{}岁了，我是一个{}孩子".format(self.name,self.age,self.gender))
    def __del__(self):
        print("..........调用析构方法删除对象.........")